<?php
class usercomment extends skeleton {
//Register User comments
	function register_user($name, $pass, $title, $clinicName, $email, $country, $year){
			$pass = md5($email);
			$result=mysql_query('Select uc_id From '.USERS_COMMENTS.' Where uc_name="'.$name.'" or uc_email="'.$email.'" ') or die(mysql_error());
			$num = mysql_num_rows($result);
			if($num == 0){
				$add_user = mysql_query('Insert Into '.USERS_COMMENTS.'
								(uc_name, uc_pass, uc_title, uc_clinic, uc_email, uc_country, uc_year) 
								values("'.htmlspecialchars($name).'", "'.htmlspecialchars($pass).'", "'.$title.'", "'.$clinicName.'", "'.$email.'", "'.$country.'", "'.$year.'")') or die(mysql_error());
			
			return $add_user;
			}
			else
				return false;
			
	}	
	
	
	
}
?>